[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
CARRIER
. Summary
carrier();
. Description
The carrier functions returns a non-zero (TRUE) value if the Carrier
Detect signal coming from the modem is on (high), otherwise it re-
turns a zero (FALSE) value. Note that some modems by default over-
ride the real state of the signal and always send a high. For this
function to work, the modem must be told to supply the real signal.
This function may be used to check if Telix is connected to a remote
service over the modem, as the Carrier Detect signal should be on if
there is a connection. Note that if you are connecting two computers
via a null-modem cable, the value returned will depend on the wiring
of the cable being used.
. Return Value
non-zero (TRUE) or zero (FALSE) based on the state of the Carrier
Detect signal.
. Example
if (carrier())
prints("We are online.");
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson